package cn.edu.cqvie.jdk8.stream;

import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Stream;

public class StreamTest1 {


    public static void main(String[] args) {
        Stream stream = Stream.of("hello", "world", "hello world");

        String[] myArr = new String[] {"hello", "world", "hello world"};
        Stream stream1 = Stream.of(myArr);
        Stream stream2 = Arrays.stream(myArr);


        List<String> list = Arrays.asList(myArr);
        Stream stream3 = list.stream();


    }
}
